<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <img src="https://images.unsplash.com/photo-1579373903781-fd5c0c30c4cd?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8M3x8ZXJyb3J8ZW58MHx8MHx8&auto=format&fit=crop&w=500&q=60" alt="404" class="not-found-image">
      <h1>404</h1>
      <h2>页面不存在</h2>
      <p>您访问的页面可能已被移除、名称已更改或暂时不可用</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<style scoped>
.not-found-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f7fa;
}

.not-found-content {
  text-align: center;
  padding: 40px;
}

.not-found-image {
  max-width: 300px;
  border-radius: 8px;
  margin-bottom: 20px;
}

h1 {
  font-size: 72px;
  margin: 0;
  color: #409EFF;
}

h2 {
  font-size: 30px;
  margin: 10px 0;
  color: #303133;
}

p {
  color: #606266;
  margin-bottom: 30px;
}
</style> 